package com.ssm.web.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ssm.bean.DatabaseFile;
import com.ssm.util.common.BaseService;
import com.ssm.web.dao.DatabaseFileMapper;

@Service
@Transactional
public class DatabaseFileService extends BaseService<DatabaseFile> {
	@Autowired
	DatabaseFileMapper databaseFileMapper;

	public void deleteFile(String name) {
		DatabaseFile f = new DatabaseFile();
		f.setFilePath(name);
		databaseFileMapper.delete(f);
	}

}
